<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-html</title>
</head>

<body>
    <div id="app">
        <div v-html="baidu"></div>
        <div v-html="title"></div>
    </div>

    <!-- 引入包-->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                baidu: `
                  <a href="http://www.baidu.com">
                    百度一下
                    </a>
                    `,
                title:`
                <h3>
                    我爱VUE
                </h3>
                `
            }
        })
    </script>
</body>

</html>